﻿using ET.Monitor.DAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ET.Monitor.Model
{
    public class ConfigrationModel
    {
        string id = "";
        public ConfigrationModel(string cid)
        {
            id = cid;
        }

        ConfigrationDAL dal = new ConfigrationDAL();

        #region 组态信息
        DataTable dtCm;

        public DataTable DtCm
        {
            get { return dal.GetConfigrationById(id); }
            set { dtCm = value; }
        }
        #endregion

        #region 组件集合
        DataTable dtControl;

        public DataTable DtControl
        {
            get { return dal.GetConfigrationControlById(id); }
            set { dtControl = value; }
        }
        #endregion
    }
}
